﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace 交作业了
{

    public partial class WebForm1 : System.Web.UI.Page
    {


        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void CustomValidator1_ServerValidate(object source, ServerValidateEventArgs args)
        {
            if (args.Value != "admin")
            {
                args.IsValid = true;
            }
            else
            {
                args.IsValid = false;
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {


            if (Page.IsValid == true)
            {


            }

        }


    }
}